import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './assets/css/global.less'
import axios from 'axios'
import echarts from 'echarts'
import SocketService from './utils/sockte.services'
import store from './store/index'
// 对服务端进行websocket的连接
SocketService.Instance.connect()

axios.defaults.baseURL = 'http://locahost:3030/api/'
// 挂载到原型上
Vue.prototype.$socket = SocketService.Instance
Vue.prototype.$axios = axios
Vue.prototype.$chart = echarts
Vue.prototype.$store = store
// 引入主题
import './assets/lib/theme/chalk'
import './assets/lib/theme/vintage'
import './assets/lib/theme/macarons'

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
